package cn.com.agree.order.exception;

import cn.com.agree.order.enums.ResultEnum;

/**
 * Descriptions...
 *
 * @author sun.ys
 * @date 2020/8/23.
 */
public class OrderException  extends  RuntimeException {

private  Integer code;
public  OrderException(Integer code,String message){
    super(message);
    this.code = code;
}
public  OrderException(ResultEnum resultEnum){
    
    super(resultEnum.getMessage());
    this.code = resultEnum.getCode();
}
}
